'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;
  router.get('/', controller.home.index);

  // 用户模块
  require('./router/user')(app);

  // 帖子模块
  require('./router/posts')(app);
};
